import 'package:flutter/material.dart';

class ContainerDemo extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
        home: Scaffold(
            appBar: AppBar(title: const Text('AspectRatio Sample')),
            body: Center(
                child: Column(children: [
              const Text(
                "Title",
                style: TextStyle(fontSize: 32),
              ),
              Container(
                // constraints: BoxConstraints.tightFor(width: 20, height: 20),
                // height: 20,
                // width: 20,
                decoration: BoxDecoration(
                    shape: BoxShape.rectangle,
                    gradient: new LinearGradient(
                        colors: [Colors.blue, Colors.indigo],
                        begin: Alignment.centerLeft,
                        end: Alignment.centerRight),
                    color: Colors.blue,
                    border: Border.all(width: 10, color: Colors.red),
                    borderRadius: BorderRadius.circular(20)),
                padding: const EdgeInsets.all(10),
                margin: const EdgeInsets.only(left: 30),
                child: 
          
                const Text(
                  "Hello world",
                  style: TextStyle(fontSize: 32, color: Colors.white),
                ),
              ),
            ]))));
  }
}
